{template "content","header"}
	<div class="main">
		<div class="wrapper bg">
			<div class="type">
				<div class="pasition">当前位置：<a href="/">首页</a><span> &gt; </span>{catpos($catid)}</div>
				<div class="item"><span>Android版本：</span>
					{loop filters('version',$modelid) $r}
						{$r[menu]}
					{/loop}
				</div>
				<div class="item"><span>UI类型：</span>
					{loop filters('ui',$modelid) $r}
						{$r[menu]}
					{/loop}
				</div>
			</div>
			<div class="list_box">
			{php $sql = structure_filters_sql($modelid,$cityid)}
			{php $cachetime = getinfocache('info_cachetime')}
			{php $urlrule = makeurlrule()}
			{php $sql = $sql." AND catid='$catid'"}
			{pc:content action="lists" catid="$catid" num="15" where="$sql" order="id DESC" page="$page" cache="$cachetime" urlrule="$urlrule" moreinfo="1"}
			{loop $data $r}
			{php $num++}
				<div class="item{if $num%2!=0} item_bg{/if}">
					<div class="pic"><a href="{$r[url]}"><img src="{thumb($r[thumb],100,145)}" width="100" height="145" alt="{$r[title]}"/></a></div>
					<div class="desc">
						<div class="tit"><a href="{$r[url]}">{$r[title]}</a></div>
						<div class="con">{$r[description]}</div>
						<div class="tag">
							发布日期：{date('Y-m-d',$r[inputtime])}&nbsp;&nbsp;Android版本：{$r[version]} UI&nbsp;&nbsp;类型：MIUI&nbsp;&nbsp;大小：{$r[filesize]}MB 
						</div>
					</div>
					<div class="down">
						{pc:get sql="SELECT s.id,downfiles,title,inputtime FROM romzj_rom s,romzj_rom_data d WHERE s.id = d.id  AND catid = $catid AND s.id=$r[id]"  return="data"}
						{loop $data $r}
						{php $files = String2Array($r['downfiles'])}  
						{php $file1 = $files[0]['fileurl']}   
						{php $pc_auth_key = md5(pc_base::load_config('system','auth_key').$_SERVER['HTTP_USER_AGENT']);}
						{php $a_k =urlencode(sys_auth("i=$r[id]&d=1&s=&t=".SYS_TIME."&ip=".ip()."&m=1&f=$file1&modelid=".$modelid, 'ENCODE', $pc_auth_key));}
						<a href="{$file1}"><img src="{IMG_PATH}down.gif"/></a>
						{/loop}  
                        {/pc}
						<!--<p>评论：<b>90000</b> 条</p>-->
						<p>下载：<b id="views{$r[id]}"><script language="JavaScript" src="{APP_PATH}api.php?op=views&id={$r[id]}&modelid={$modelid}"></script></b> 次</p>
					</div>
				</div>
				{/loop}	
			{/pc}
				<div class="page">
					{$pages}
				</div>
			</div>
		</div>
	</div>
{template "content","footer"}
</body>
</html>
